package com.yuxin.wx.domain;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Blog.
 *
 * @author zcq
 */
@Data
@Accessors(chain = true)
@Document(indexName = "blog", type = "blog")
public class EsBlog implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	private String id;
	private Long blogId;

	private String title;

	private String summary;

	private String content;

	private String username;

	private String avatar;

	private Integer readSize = 0;

	private Integer commentSize = 0;

	private Integer voteSize = 0;

	private String tags;

	public EsBlog() {
	}

	public EsBlog(String title, String summary, String content) {
		this.title = title;
		this.summary = summary;
		this.content = content;
	}
}
